<?php
    $user = $this->controller->getUser();
    
    $vote_info = $this->layout()->vote_info;
    $vote_list = array();
    foreach($vote_info as $thread_id=>$thread){
        $now = time();
        foreach($thread as $phase_id=> $phase){
            if($phase->view_enable==1){
                $vname = $phase->thread_name;
                $vid = $thread_id."_".$phase_id;
                $vote_list[] = array("name"=>$vname, "video_category"=>$phase->video_category, "votephoto_category"=>$phase->votephoto_category, "vid"=>$vid, "thid"=>$thread_id, "pid"=>$phase_id);
            }
        }
        
    }
?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <title><?echo ($this->layout()->title!="" ? $this->escape($this->layout()->title) : "") ?></title>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
    <meta name="generator" content="">
    <link rel="shortcut icon" href="/misc/favicon.ico" type="image/x-icon" />
        
    <!--Import CSS files:-->
    <link href="<?php echo $this->layout()->spath;?>/css/css-dai-hoi-am-nhac.css" rel="stylesheet" type="text/css" />
    <link href="<?php echo $this->layout()->spath;?>/css/master.css" rel="stylesheet" type="text/css" />   
    <!--End css files-->
    
       <script type="text/javascript" src="<?php echo EVENT_STATIC_SERVER;?>/js/swfobject.js"></script>
    <script type="text/javascript" src="<?php echo EVENT_STATIC_SERVER;?>/js/jquery.js"></script>
    <script type="text/javascript" src="<?php echo EVENT_STATIC_SERVER;?>/js/event_cover_comment.js"></script>
</head>
<body>

    <!--Khung trang-->
      <div id="khung-trang" class="page-center">
           <!--banner1-->
           <div class="banner1"></div>
           
           <!--banner2-->
           <div id="banner2" class="tex-menu-banner2">
                 <a href="/event/<?php echo $this->layout()->short_cut;?>" title="Trang chủ">Trang chủ</a>  |
                 <a href="/event/<?php echo $this->layout()->short_cut;?>/desc" title="Giới thiệu">Giới thiệu</a>  |  
                 <a href="http://blog.tamtay.vn/NhacHoi08/blog" title="Tin tức & sự kiện">Tin tức & sự kiện</a>  |  
                 <a href="http://photo.tamtay.vn/category/browse/<?php echo $vote_list[0]["votephoto_category"];?>" title="Ảnh chương trình">Ảnh chương trình</a>  |  
                 <a href="http://video.tamtay.vn/video/chanel/<?=$vote_list[0]["video_category"];?>" title="Video & bài hát">Video & bài hát</a>
           </div>
           
           <!--banner3-noidung-->
           <div id="banner-noidung"> 
                   <?php echo $this->layout()->content;?>
           </div>
           
           <!--Footer-->
           <div id="pooter">
                <div class="footer-copyright"> Copyright by tamtay.vn </div>
                <div class="footer-logo"><a href="http://www.tamtay.vn"> <img src="<?php echo $this->layout()->spath;?>/images/logo_tt_footer.gif" /> </a></div>
           </div>
      </div>

</body>
</html>